﻿@using Asd.Models;
@model IEnumerable<Student>;
@{
    ViewData["Title"] = "Home Page";
}
<head>
    <link rel="stylesheet" href="~/css/Base.css">
</head>

<div>
    <div>
        <input type="text" name="keyword" placeholder="输入关键字"><input type="button" id="btnQuery" value="查询">
        <input type="button" id="btnAdd" value="添加">
    </div>
    <div>
        <table id="tb">
            <tr>
                <th>Id</th>
                <th>学生姓名</th>
                <th>备注</th>
                <th>操作</th>
            </tr>
            @foreach (var item in Model)
            {
                <tr class="tbtr">
                    <td>@item.Id</td>
                    <td>@item.StudnetName</td>
                    <td>@item.Remarks</td>
                    <td>
                        <input type="button" onclick="btnEdit(@item.Id)" value="编辑">
                        <input type="button" onclick="btnDel(@item.Id)" value="删除">
                    </td>
                </tr>
            }
        </table>
    </div>
</div>

<script src="~/lib/jquery/dist/jquery.min.js"></script>
<script src="~/js/Base.js"></script>